package com.lmy.springCloud.service.Impl;

import com.lmy.springCloud.dao.MemberDao;
import com.lmy.springCloud.entity.Member;
import com.lmy.springCloud.service.MemberService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class MemberServiceImpl implements MemberService {

    @Resource
    private MemberDao memberDao;


    @Override
    public Member queryMemberById(Long id) {
        return memberDao.getMemberById(id);
    }

    @Override
    public int saveMember(Member member) {
        return memberDao.insertMember(member);
    }
}
